import request from '@/utils/request'

// 查询条码字段行列表
export function listFieldline(query) {
  return request({
    url: '/barcode/fieldline/list',
    method: 'get',
    params: query
  })
}

// 查询条码字段行详细
export function getFieldline(id) {
  return request({
    url: '/barcode/fieldline/' + id,
    method: 'get'
  })
}

// 新增条码字段行
export function addFieldline(data) {
  return request({
    url: '/barcode/fieldline',
    method: 'post',
    data: data
  })
}

// 修改条码字段行
export function updateFieldline(data) {
  return request({
    url: '/barcode/fieldline',
    method: 'put',
    data: data
  })
}

// 删除条码字段行
export function delFieldline(id) {
  return request({
    url: '/barcode/fieldline/' + id,
    method: 'delete'
  })
}

export function saveFieldline(data) {
  return request({
    url: '/barcode/fieldline/save',
    method: 'post',
    data: data
  })
}

